<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<table  border="1" cellspacing="0">
    <thead>
    <tr>
        <th>序号</th>
        <th>部门</th>
        <th>姓名</th>
        <th>开始时间</th>
        <th>结束时间</th>
        <th>用时（秒）</th>
    </tr>
    </thead>
    <tbody>
    <tr th:each="user,userStat : ${users}">
        <td th:text="${userStat.index}">序号</td>
        <td th:text="${user.departmentName}">部门</td>
        <td th:text="${user.userName}">姓名</td>
        <td th:text="${#dates.format(user.beginDate,'yyyy-MM-dd HH:mm:ss')}">开始时间</td>
        <td th:text="${#dates.format(user.endDate,'yyyy-MM-dd HH:mm:ss')}">结束时间</td>
        <td th:text="${user.duration}">用时</td>
    </tr>
    </tbody>
</table>
</body>
</html>